﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Skimpt3
{
    public partial class InputBox : Form
    {
        public string Result;
        public string Message;

        public InputBox(string Msg)
        {
            InitializeComponent();
            Message = Msg;
            lblMsg.Text = Message;
            this.Name = Message;
        }

        private void InputBox_Load(object sender, EventArgs e)
        {}

        private void btnOK_Click(object sender, EventArgs e)
        {
            Result = txtResult.Text;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
